package Q1;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        String str = sc.nextLine();

        int n = str.length();

        str = str.toUpperCase();

        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str.charAt(0));

        for (int i = 1; i < n; i++) {
            if (str.charAt(i) == ' ') {
                stringBuilder.append(str.charAt(i + 1));
            }
        }

        System.out.println(stringBuilder.toString());

    }
}
